package models.vos.project {
	import mx.collections.ArrayCollection;
	

	public class Project {

		public var id:Number;

		public var projectName:String;

		public var mainObjective:String;

		public var startDate:Date;

		public var endDate:Date;
		
		public var targetDate:Date;

		public var dateStep:int;

		private var active:Boolean;

		public var objectives:ArrayCollection;
		public var majorTasks:ArrayCollection;
		public var members:ArrayCollection;
		public var subjectives:ArrayCollection;
		
		public var company:Company;

		public var budgets:ArrayCollection;

		public var oPPMReports:ArrayCollection;

		public function get manager():ProjectMember{
			if( this.members != null && this.members.length > 0 ){
				for each (var u:ProjectMember in this.members ){
					if( u.isManager ) { return u; }
				}
			}
			return null
		}

		public function Project() {
		}


	} // end class
} // end package